<?php
$dbms='mysql';     //数据库类型
$host='10.66.203.63'; //数据库主机名
$dbName='lighter_longyue8_com';    //使用的数据库
$user='lighter';      //数据库连接用户名
$pass='lighter_longyue8_com';          //对应的密码
//$pass = '';
$dsn="$dbms:host=$host;dbname=$dbName";


$dbh = new PDO($dsn, $user, $pass); //初始化一个PDO对象
$dbh->query('SET NAMES utf8')->execute();

//$xxx = $dbh->query('SELECT * from user');
//var_dump($xxx->fetchAll(PDO::FETCH_ASSOC));
//exit;
$res = $dbh->prepare("UPDATE  activity SET num = num + 1 WHERE id=1");
$res->execute();
/*你还可以进行一次搜索操作
foreach ($dbh->query('SELECT * from FOO') as $row) {
    print_r($row); //你可以用 echo($GLOBAL); 来看到这些值
}
*/
//默认这个不是长连接，如果需要数据库长连接，需要最后加一个参数：array(PDO::ATTR_PERSISTENT => true) 变成这样：

;?>
<html style="font-size: 58.5938px;">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,  user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="cache-control" content="no-cache">
    <title></title>
    <meta name="description" content="">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <script>
        function rem(psd){document.documentElement.style.fontSize = 100*document.documentElement.clientWidth / psd + 'px';}
        rem(750);
    </script>
    <link rel="stylesheet" href="./styles/css/style.css?v=24">
</head>
<body>
    <a href="end.php" class="light_btn"></a>
    <div class="banner">
        <img src="styles/img/banner.jpg" alt="" class="w100">
        <img src="styles/img/fang.png" class="fang" alt="">
        <img src="styles/img/hua.png" class="hua" alt="">
<!--        <img src="styles/img/right_logo.png" class="right_logo" alt="">-->
        <img src="styles/img/wuxi.png" class="wuxi" alt="">
    </div>
    <div class="index">
        <img src="styles/img/part1.png" alt="" class="part1 w100">
        <video src="http://p6r3j9nyj.bkt.clouddn.com/201846.mp4" poster="styles/img/video.jpg" controls="controls" class="part1_bg w100">
        </video>
        <img src="styles/img/part2.png" class="part2 w100" alt="">
        <img src="styles/img/part2.jpg" class="part2_bg w100" alt="">
        <img src="styles/img/part3.png" class="part3 w100" alt="">
        <img src="styles/img/part3.jpg" class="part3_bg w100" alt="">
        <img src="styles/img/part4.png" class="part4 w100" alt="">
        <img src="styles/img/part4.jpg" class="part4_bg w100" alt="">
    </div>
    <div class="ligher_btn">
        <img src="styles/img/logo.png" class="logo" alt="">
        <div class="clearfix">
            <div class="fl">
                <p>【芳华vip优惠手册】<br/>
                    “点亮领取，享10000元品牌优惠”</p>
            </div>
            <img src="styles/img/right.png" alt="" class="fr">
        </div>
        <a href="end.php" class="btn">我要点亮</a>
        <img src="styles/img/rel.png" alt="" class="tel">
        <p class="add">地址：梁溪城心·中山路旁·三院站<br/>
            （三号线在建中）</p>
    </div>
    <div id="loader" ontouchmove="return !1" class="loader loading-wrap" style="/* display: none; */">
        <div class="loader-graph">
        </div>
        <span class="current loader-progress loading-num">0%</span>
        <div class="loader-text">
        </div>
    </div>
    <script type="text/javascript" src="styles/js/zepto.min.js"></script>
    <script type="text/javascript" src="styles/js/script.js?v=29"></script>
    <?php include_once ('./share.php');?>
</body>
</html>